/*
 * port_posix.h -  POSIX 平台硬件抽象层头文件
 *
 * Author: xiaobo@YGL (xiaobocwb@gmail.com)
 * Version: 1.0.0
 * Date: 2025-01-14
 */

#ifndef __PROTOCOL_PORT_POSIX_H__
#define __PROTOCOL_PORT_POSIX_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "protocol.h"

extern const protocol_hal_t hal_posix;


int open_serial_port(const char *device);
int uart_recv(void *dev, uint8_t *buf, uint16_t size, uint32_t timeout_ms);

#ifdef __cplusplus
}
#endif

#endif